import { request } from '@/plugins/http';

export const apiSystemSettings = {
  // 获取配置
  getData: async (): Promise<API.Setting> => {
    const resp = await request('/admin/settings');
    return resp.data;
  },
  // 保存配置
  save: (data: API.Setting) => {
    return request('/admin/settings', {
      method: 'post',
      data,
    });
  },
};
